home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sources / xbmbrows / xbmbro31.z / xbmbro31 / xbmbrowser3.1 / user-menu.h < prev    next >
C/C++ Source or Header  |  1993-08-05  |  2KB  |  64 lines

  1. /*
  2. *****************************************************************************
  3. ** xbmbrowser version 3.1  (c) Copyright Ashley Roll, 1992.
  4. ** FILE: user-menu.h
  5. **
  6. ** xbmbrowser is Public Domain. However it, and all the code still belong to me.
  7. ** I do, however grant permission for you to freely copy and distribute it on 
  8. ** the condition that this and all other copyright notices remain unchanged in 
  9. ** all distributions.
  10. **
  11. ** This software comes with NO warranty whatsoever. I therefore take no
  12. ** responsibility for any damages, losses or problems that the program may 
  13. ** cause.
  14. *****************************************************************************
  15. */
  16.  
  17. #ifdef USER_MENU_C_FILE
  18. #define extr
  19. #else
  20. #define extr extern
  21. #endif
  22.  
  23. /*
  24.  * global variables
  25.  */
  26. extr char *directory;   /* string containing the current directory */
  27.  
  28. /*
  29.  * Expand the tilder in the string passed to it.
  30.  * void expand_tilder(text)
  31.  * char *text;
  32.  */
  33. extr void expand_tilder();
  34.  
  35. /*
  36.  * Create a new menu - and put a line under the lable
  37.  * Widget MakeMenu(parent,name,label)
  38.  * Widget parent;
  39.  * char *name,*label;
  40.  */
  41. extr Widget MakeMenu();
  42.  
  43. /* 
  44.  * add an smeBSBObjectClass object to a menu (widget)
  45.  * callback is the procedure that it calls or NULL
  46.  * Widget AddMenuItem(menu,label,callback,cbdata,sensitive)
  47.  * Widget menu;
  48.  * char *label;
  49.  * XtCallbackProc callback;
  50.  * XtPointer cbdata;
  51.  * int sensitive;
  52.  */
  53. extr Widget AddMenuItem();
  54.  
  55. /* 
  56.  * create the menu
  57.  * Widget Create_user_menu(parent,name,file)
  58.  * Widget parent;
  59.  * char *name,*file;
  60.  *
  61.  */ 
  62. extr Widget Create_user_menu();
  63.  
  64.